Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leajs-encoding

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leajs-encoding

extracting inline critical css from html

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

leajs-encoding

Plugin of leajs.

handles the encoding.

leajs.config

module.exports = {

  // Should responses get encoded
  // Default: inProduction
  encode: null, // Boolean

  // Options used for zlib encoder
  encodeOptions: {}, // Object

  // Should save encoded file besides existing plain file
  // Default: inProduction
  encodeSave: null, // Boolean

  // Lookup table to translate encoding to file extension
  // type: Object
  encodedTable: {"gzip":"gz","br":"br"},

  // Encoded versions available besides plain file
  files.$item.encoded: null, // Array

  // Encoded versions available besides plain file
  folders.$item.encoded: null, // Array

  // …

}

License

Copyright (c) 2018 Paul Pflugradt Licensed under the MIT license.

FAQs

Package last updated on 29 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc